home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hackers Matrix
/
Hacker's Matrix (nCite Software) (2003).iso
/
Data
/
hack0665.ZIP
/
telnet.mrc
next >
Wrap
Text File
|
2000-01-27
|
2KB
|
58 lines
alias telnet {
window -e @telnetmIRC 100 75 600 350
telnet.stats Type Your Commands Here!
telnet.stats For Example: To connect to earthlink's e-mail server, you would type: telnet smtp.earthlink.net 110
telnet.stats After the first telnet command, you may then execute other commands from within these Unix systems. Enjoy!
}
alias -l telnet.error {
echo @telnetmIRC $+ $colour(info) $+ *** $1-
}
alias -l telnet.stats {
echo @telnetmIRC $+ $colour(info2) $+ *** $1-
}
alias -l telnet.br {
echo @telnetmIRC $chr(160)
}
on *:CLOSE:@telnetmIRC: {
if ($sock(telnet) != $null) { sockclose telnet }
haltdef
return
}
on *:input:@telnetmIRC: {
if ($left($1,1) == /) { return }
if ($1 = exit) {
if ($sock(telnet) != $null) { sockclose telnet }
telnet.error Disconnected...
window -c @telnetmIRC
haltdef
return
}
if ($sock(telnet) == $null) && ($1 != telnet) { telnet.error Not Telneted To Anything Yet! | haltdef | return }
if ($1 == telnet) {
if ($2 == $null) { telnet.error Invalid Address! }
if ($3 == $null) { telnet.error Invalid Port! | haltdef | return }
if ($sock(telnet) != $null) { telnet.error Disconnected... | telnet.br | sockclose telnet }
sockopen telnet $2 $3
set %telnet.host $2
set %telnet.port $3
haltdef
return
}
if ($1 == quit) { telnet.error Telnet Connection Closed! | telnet.br | sockclose telnet | haltdef | return }
sockwrite -n telnet $1-
haltdef
return
}
on *:sockopen:telnet: {
telnet.stats Telneting To: $+ %telnet.host $+ ||| Port: $+ %telnet.port $+
}
on *:sockread:telnet: {
if ($sockerr > 0) { telnet.error Error Receiving Information...Closing | sockclose telnet | haltdef | return }
sockread %tmp.telnet.sockread
telnet.stats %tmp.telnet.sockread
}
on *:sockclose:telnet: {
telnet.error Disconnected From Remote Computer!
telnet.br
}